import 'package:flutter/material.dart';
import 'package:flutter_application_1/ui/widget/vertical_text.dart';

class BusinessPage extends StatefulWidget {
  const BusinessPage({super.key});

  @override
  State<BusinessPage> createState() => _BusinessPageState();
}

class _BusinessPageState extends State<BusinessPage> {
  double singleLineWidth = 16;
  int numberOfSingleLineText = 10;
  String from = "未完待续";
  String textContent = "xxx";
  bool darkModeOn = false;

  Widget textShow() {
    return VerticalText(
        textContent: textContent,
        from: from,
        numberOfSingleLineText: numberOfSingleLineText,
        singleLineWidth: singleLineWidth);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            textShow(),
          ],
        ),
      ),
    );
  }
}
